home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / MULTI-T.TEC < prev    next >
Text File  |  1992-03-09  |  6KB  |  109 lines

  1. ID:MT Multitasking in DESQview
  2. Quarterdeck Technical Note #152
  3. by Stan Young
  4. last revision:  11 February 1992
  5.  
  6.      One of the features of DESQview is the ability to provide for the multi-
  7. tasking or background processing of a program.  This feature allows the user 
  8. to start an operation which will not require user intervention and then switch 
  9. to another task while the operation continues in background.
  10.      While multi-tasking is certainly a useful feature, it is important to 
  11. note that DESQview cannot provide multi-tasking all by itself.  A program's 
  12. ability to multi-task in DESQview is dependent on the setup of the program, 
  13. the hardware being used, and, in some cases, the way the program has been 
  14. written.
  15.  
  16. What is absolutely required:
  17.  
  18. SETUP:  First, in order to multi-task a program must be set up so that it is 
  19. allowed to multi-task.  Under the default setup for a program added to the 
  20. DESQview menu by choosing the "Other" selection from the Add A Program menu,  
  21. DESQview assumes several things that prevent multi-tasking.  
  22.  
  23. *  DESQview assumes the program "Writes directly to the screen."
  24. *  DESQview assumes that if the program writes directly to screen and the 
  25.    machine is not a 386 with QEMM, it does not "Run in background."
  26.  
  27.      Given that DESQview assumes that the program runs only in foreground, 
  28. under the defaults, the program will not run in background even if otherwise 
  29. capable of doing so.  Therefore it is necessary to modify the default setup 
  30. using "Change a Program" to see if the program can run in background.  The 
  31. first thing to determine is whether the program actually "Writes directly to 
  32. screen" (see below).  If it does not, and you set the "Writes directly to 
  33. screen" option to "N",  DESQview will allow the program to run in the 
  34. background.
  35.  
  36. MEMORY:  Second, in order to multi-task a program must be able to remain in 
  37. active, addressable RAM.  Multi-tasking is an internal function of DESQview, 
  38. and DESQview does not REQUIRE any add-on in order to multi-task.  HOWEVER, 
  39. 640K can certainly be a limited environment if you are trying to multi-task 
  40. large programs.  If you are planning to multi-task large programs, you may 
  41. need to purchase additional memory.
  42.      The only types of memory which currently can be used for multi-tasking 
  43. beyond 640K are EEMS memory,  EMS 4.0 memory ON A FULLY FUNCTIONAL EMS 4.0 
  44. BOARD (an EMS 4.0 driver on old-style EMS 3.2 board will not suffice) or 
  45. exTENDed memory on a 386 machine with QEMM, CEMM, or compatible 386 expanded 
  46. memory driver.
  47.      If your machine's memory configuration is such that the program must be 
  48. swapped out to disk, ramdisk, or EMS or EEMS memory, then the processing of 
  49. that program will be interrupted.  You will know this has happened if you get 
  50. a "Swapping..." message when switching from the program.  If this is happening 
  51. and you have configured your programs to minimum memory sizes, the only thing 
  52. that can allow you to achieve multi-tasking is to increase the number or size 
  53. of the addressable memory partitions available to DESQview.  As indicated 
  54. before, this may require additional hardware.  
  55.      More information on this subject can be found in the DESQview manual 
  56. under the appendix, "Using Expanded Memory with DESQview".
  57.  
  58. What is usually desired:
  59.  
  60. SCREEN MANAGEMENT - Another item that is usually necessary for effective 
  61. background processing, although not absolutely required, is for DESQview to be 
  62. able to provide screen management.  
  63.      A program which actually "Writes directly to screen" cannot have its 
  64. screen output managed by DESQview.  Therefore, if it is running in the 
  65. background and updates the screen, what it writes will print through on the 
  66. screen of the foreground application.  
  67.  
  68. Testing to see if the program writes directly to screen:
  69.  
  70.      All graphics based programs write directly to screen; however if your 
  71. program runs in character mode, you should try setting it up in a window that 
  72. has the "Writes directly to screen" option set to "N".  Then invoke the 
  73. program, allowing it to come up in a small DESQview window.  If the program 
  74. loads into the window without writing outside the window frame, the program 
  75. does not write directly to screen and should operate properly in the 
  76. background.  If the program does print outside the window frame, the program 
  77. does write directly to screen and you will have to evaluate for yourself 
  78. whether running it in the background would upset your foreground operation too 
  79. much.
  80.      On a 386 machine, Quarterdeck's QEMM-386 driver provides virtualization 
  81. of the screen in text, CGA, EGA, Hercules Monographics, and VGA graphics mode 
  82. so that programs using those modes can run with their screens managed by 
  83. DESQview regardless of whether they write directly to screen or not.  If the 
  84. programs switch modes in background (for instance, switch from text to 
  85. graphics), you must explicitly set the "Runs in background" option to "Y".
  86.  
  87. Keyboard and mouse handling:
  88.  
  89.      Programs running in background should be well behaved with regard to 
  90. their use of the keyboard.  If they are not, running them in the background 
  91. may cause problems with using the keyboard in the foreground window.  In some 
  92. cases, setting "Keyboard Conflict" to 4 using Change a Program can alleviate 
  93. this problem.  Setting "Maintain separate shift states" to "Y" in the DESQview 
  94. setup, advanced options, keyboard, may also be necessary to keep a program 
  95. running in the background from interfering with the foreground window's use of 
  96. the keyboard.
  97.      DESQview versions prior to 2.2 do not currently support the background 
  98. operation of a program that is using the mouse unless that program is DESQview 
  99. aware.  Running a program that uses the mouse in background will cause the 
  100. mouse to be lost for DESQview or other programs.  As of version 2.2, DESQview 
  101. "virtualizes" the mouse so that non-DESQview aware programs "see" the mouse 
  102. only when in foreground.
  103.  
  104.   ************************************************************************
  105.   *This technical note may be copied and distributed freely as long as it*
  106.   *is distributed in its entirety and it is not distributed for profit.  *
  107.   *         Copyright (C) 1991-2 by Quarterdeck Office Systems           *
  108.   ************************ E N D   O F   F I L E *************************
  109.